package com.suse.warmstill.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.time.LocalDateTime;

/**
 * @author 黄靖
 * @author 2022-11-02 10:34
 * description:
 **/
@Validated
@Data
@ApiModel("文章详情")
public class ArticleVo extends BaseVo {
    @ApiModelProperty("id(自增)")
    private Long id;

    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("小总结")
    private String summary;

    @ApiModelProperty("文章作者")
    private String authorName;

    @ApiModelProperty("点赞数量")
    private Long praiseCounts;

    @ApiModelProperty("阅读数量")
    private Long viewCounts;

    @ApiModelProperty("文章内容")
    private String articleBody;

    @ApiModelProperty("文章封面")
    private String backgrund;


    @ApiModelProperty("文章分类")
    private String category;


    @ApiModelProperty("发表日期")
    private LocalDateTime createTime;


}
